-- GENERATED SPELL FOR [Disembodied Protector] --


function spell0_18873(pUnit, Event) --@Crusader Strike,n/a--
pUnit:FullCastSpellOnTarget(36647,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18873', 10280, 1)
end

function spell1_18873(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(9734,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18873', 2500, 1)
end

function Sorts_18873(pUnit, Event)
local choix_sorts_18873 = math.random(0, 1)
if choix_sorts_18873 == 0 then
pUnit:RegisterEvent('spell0_18873', 1, 1)
end
if choix_sorts_18873 == 1 then
pUnit:RegisterEvent('spell1_18873', 1, 1)
end
end

function mob18873_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18873', math.random(1500, 3000), 1)
end

function mob18873_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18873_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18873_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18873, 1, 'mob18873_Action')
RegisterUnitEvent(18873, 2, 'mob18873_Leave')
RegisterUnitEvent(18873, 3, 'mob18873_Kill')
RegisterUnitEvent(18873, 4, 'mob18873_Die')
